package com.ssy.lingxi.order.api.model.vo.paas;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 更新支付方式与支付渠道状态接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-11
 */
public class OrderPayChannelFeignVO implements Serializable {
    private static final long serialVersionUID = -4897812972615244236L;

    /**
     * 支付方式
     */
    @NotNull(message = "支付方式要大于0")
    @Positive(message = "支付方式要大于0")
    private Integer payType;

    /**
     * 支付渠道
     */
    @NotNull(message = "支付渠道要大于0")
    @Positive(message = "支付渠道要大于0")
    private Integer payChannel;

    /**
     * 状态
     */
    @NotNull(message = "状态取值 0-停用，1-启用")
    @Min(value = 0, message = "状态取值 0-停用，1-启用")
    @Max(value = 1, message = "状态取值 0-停用，1-启用")
    private Integer status;

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
